[PATCH] [OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag
authorNikita Popov <npopov@redhat.com>
Thu, 20 Apr 2023 12:59:27 +0000 (14:59 +0200)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 24 Feb 2024 07:54:59 +0000 (08:54 +0100)
commit2b6b10cd166c25e4e791149772de73d92c47cbc5
tree9c66aba71c75061a83b35868592636c7a7fe19b1
parentbe9d7d57e0293cbfe82809e4e28d6670d5e82747
[PATCH] [OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag

Replace the custom libomp_check_linker_flag() implementation with
llvm_check_compiler_linker_flag() from the common cmake utils. Due
to the way the custom implementation is implemented (capturing
output from an entire nested cmake invocation) it can easily end
up incorrectly detecting flags as unavailable, e.g. because "error",
"unknown" or similar occurs inside compiler flags, the directory
name, etc.

Fixes https://github.com/llvm/llvm-project/issues/62240.

Differential Revision: https://reviews.llvm.org/D148798

Gbp-Pq: Name new-cmake-build-fix.patch
openmp/runtime/cmake/LibompCheckLinkerFlag.cmake [deleted file]
openmp/runtime/cmake/config-ix.cmake